package com.wikidot.designpatterns.templatemethod;


public class Client {
	public static void main(String[] args) {
		// Select implementation
		IceCreamMachine icm = new IceCreamFromStreet();
		// Let the selected application create the product
		// (inversion of control principle)
		IceCream ic = icm.createIceCream();
		// Lets see what was created
		System.out.println(ic);

		// Try different one
		icm = new IceCreamForShop();
		ic = icm.createIceCream();
		System.out.println(ic);
	}
}
